﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Controls_navigator : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string str = "";
            if (Session["loginClient"] == null)
            {
                str += "<ul>";
                str += "<li><a href=\"../Pages/Home.aspx\">Home</a></li>";
                str += "<li><a href=\"../Pages/Upload.aspx\">Upload</a></li>";
                str += "<li><a href=\"../Pages/ContactUs.aspx\">Contact Us</a></li>";
                str += "</ul>";
            }
            else
            {
                str += "<ul>";
                str += "<li><a href=\"../Pages/Home.aspx\">Home</a></li>";
                str += "<li><a href=\"../Pages/Upload.aspx\">Upload</a></li>";
                str += "<li><a href=\"../Pages/MyAlbum.aspx\">My Album</a></li>";
                str += "<li><a href=\"../Pages/AccountInformation.aspx\">Account Info</a>";
                str += "<ul style=\"display: none; \">";
                str += "<li><a href=\"../Pages/ChangePass.aspx\">Change Pass</a></li>";
                str += "<li><a href=\"../Pages/OrderInfo.aspx\">List Order Bill</a></li>";
                str += "</ul>";
                str += "</li>";
                str += "<li><a href=\"../Pages/Cart.aspx\">View Cart</a></li>";
                str += "<li><a href=\"../Pages/ContactUs.aspx\">Contact Us</a></li>";
                str += "</ul>";
            }
            ltlNav.Text = str;
        }
    }
}
